package piconode.ext;

import piconode.core.operator.ActivationFunctionWithDerivative;

/*
 * Created on 6 janv. 2005
 * bredeche(at)lri(point)fr
 * 
 */

public class ActivationFunction_Linear extends ActivationFunctionWithDerivative {

	@Override
	public double applyFunction(double __value) // f(x) = x
	{
		return (__value);
	}

	/**
	 * compute derivative of f(x), which is for this special function... 1
	 * parameter value is unused (asked for compliance with method prototype)
	 */
	@Override
	public double applyDerivativeFunction(double __value) // f'(x) = x' = 1
	{
		return (1);
	}

}
